package com.angel.architecture.event.actor;

import com.angel.architecture.context.ExecutionContext;

public class ApplicationContextActorResolver implements CurrentActorResolver {
    public String getCurrentActor() {
        if (ExecutionContext.getContext().getRequest() == null) {
            return null;
        }
        return ExecutionContext.getContext().getSessionUserDTO().getUserName();
    }
}
